package com.lu.manage.modular.system.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @Project sKnowledge-Blog
 * @Author: zhanglu
 * @Date: 2019-11-15 10:41:48
 * @Description: 系统任务表
 */
@Data
@Accessors(chain = true)
@TableName("sys_task")
public class Task implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    //cron表达式
    @TableField("cron_expression")
    private String cronExpression;

    //任务执行时调用哪个类的方法 包名+类名
    @TableField("class_bean")
    private String classBean;

    //任务分组
    @TableField("job_group")
    private String jobGroup;

    //任务名
    @TableField("job_name")
    private String jobName;

    //任务状态
    @TableField("state")
    private Integer state;

    //任务描述
    @TableField("descript")
    private String descript;

    //更新者
    @TableField(value = "update_user", fill = FieldFill.INSERT_UPDATE)
    private String updateUser;

    //更新时间
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}
